//
//  RXFrameTabBarViewController.h
//  RXFrame
//
//  Created by srxboys on 2021/4/20.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class RXFrameNavViewController;
@class RXFrameViewController;

/**
 * Base UITabBarController
 *
 * @warning 不要使用 \e selectedIndex
 */
@interface RXFrameTabBarViewController : UITabBarController
@property (nonatomic, strong) RXFrameNavViewController * rootViewController;
/// 自定义的 selectedIndex
@property (nonatomic, assign) NSInteger current;

/**
 * 设置 tabBarItem
 *
 * 可以使用框架中快捷初始化的方法
 * @see setNavRootViewControll:viewController:title:imagePath:selectedImagePath;
 */
- (void)addNavsToTabBar;

/// 框架中的样式 - (未启用)
- (void) toTabBarFontColor;


/**
 * 添加 \e tabBarItem
 *
 *  \code
 *  // self.home = [[SCMHomeViewController alloc] init];
 *  // ---- 默认 rootViewController = home ---
 *  self.rootViewController = [self setNavRootViewControll:self.home titleStr:@"首页" imagePath:@"图片地址名" selectedImagePath:@"选中图片名"]
 *
 *  self.func = [[SCMFuncViewController alloc] init];
 *  [self setNavRootViewControll:self.func titleStr:Localized(LOCAL_TAB_FUNC) imagePath:@"tab_1_n" selectedImagePath:@"tab_1_s"];
 *  \endcode
 *
 * @brief 设置viewController并添加到UITabBarViewControll
 *
 * @param viewController    VC控制器
 * @param title             tab标题、nav标题
 * @param imagePath         默认图片
 * @param selectedImagePath 选中、点击 是的图片
 *
 * @return \e RXFrameNavViewController
 */
- (RXFrameNavViewController *)setNavRootViewControll:(RXFrameViewController *)viewController titleStr:(NSString *)title imagePath:(NSString *)imagePath selectedImagePath:(NSString *)selectedImagePath;
@end

NS_ASSUME_NONNULL_END
